home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
wdj0797.zip
/
HOWARD.ZIP
/
DEMODLG.CPP
next >
Wrap
C/C++ Source or Header
|
1997-04-13
|
1KB
|
55 lines
// DemoDlg.cpp : implementation file
//
#include "stdafx.h"
#include "IdleDemo.h"
#include "DemoDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDemoDlg dialog
CDemoDlg::CDemoDlg(CWnd* pParent /*=NULL*/)
: CIdleDlg(CDemoDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDemoDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CDemoDlg::DoDataExchange(CDataExchange* pDX)
{
CIdleDlg::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDemoDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDemoDlg, CIdleDlg)
//{{AFX_MSG_MAP(CDemoDlg)
// NOTE: the ClassWizard will add message map macros here
ON_UPDATE_COMMAND_UI(IDOK, OnUpdateAny)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDemoDlg message handlers
void CDemoDlg::OnUpdateAny(CCmdUI * aEnabler)
{
switch (aEnabler->m_nID)
{
case IDOK:
aEnabler->Enable(!GetDlgItem(IDOK)->IsWindowEnabled());
break;
}
}